QuickSearch = function() {
    var a = !0,
        b = 0;
    SearchJudge = function(a, b) {
        a = $.trim(a);
        value = /[\u4e00-\u9fa5]/g.test(a) ? "nice" : !isNaN(a) && 12 >= a.length ? /^1[34578]\d{9}$/.test(a) ? "phone" : /^1[45]\d{10,11}$/.test(a) ? "order" : "qq" : "nice";
        a = b.closest("form");
        b = a.find(".first_select").find("[value='" + value + "']:eq(0)");
        a.find("[name=first_select]").val(value);
        a.find("input.layui-unselect:eq(0)").attr("readonly", !1).val(b.html()).attr("readonly", !0);
        a.find("input[name=first_input]").attr("placeholder", "\u8bf7\u8f93\u5165" + b.attr("tips"))
    };
    $(".first_search dd").live("click", function() {
        a = !1;
        $input = $(this).closest("form").find("input[name=first_input]");
        $input.focus();
        if ("undefined" == typeof $(this).attr("tips")) var b = $(".first_select").find("option:selected").attr("tips");
        else {
            b = $(this).attr("tips");
            var d = $(this).closest("form");
            $(this).addClass("layui-this").siblings().removeClass("layui-this");
            $(this).closest("div").removeClass("curr");
            d.find(".layui-unselect:eq(0)").val($(this).html());
            d.find("[name=first_select]").val($(this).attr("value"))
        }
        $input.attr("placeholder", "\u8bf7\u8f93\u5165" + b)
    });
    $(".uso input[name=first_input]").keydown(function(c) {
        if (0 == b && 13 == c.keyCode) {
            b = 2;
            dform($("form.uso").serialize(), "first_search", function(b) {
                1 == b.state ? (a = !0, $("form").attr("action", b.url), $("form").submit(), $(".first_input input").val(""), $("form").attr("action", "")) : Rs(b)
            });
            var d = setInterval(function() {
                b--;
                0 == b && clearInterval(d)
            }, 1E3)
        }
    });
    $(".first_input input").bind("input propertychange", function() {
        var b = $(this),
            d = b.closest("div").find("a");
        0 < b.val().length ? (d.addClass("delkey"), a && SearchJudge(b.val(), b), $._data(d[0], "events") || d.bind("click", function() {
            d.unbind("click");
            b.val("");
            a = !0;
            d.removeClass("delkey")
        })) : (d.removeClass("delkey"), d.unbind("click"))
    })
};
resappend = function(a, b, c) {
    layer.closeAll();
    layer.alert('<b>\u5bf9\u65b9\u53d1\u8d77\u4e86<font color="' + (c ? "red" : "blue") + '">\u8ffd\u52a0\u4ea4\u6613</font>\u8bf7\u6c42\uff0c\u8bf7\u53ca\u65f6\u56de\u5e94\u64cd\u4f5c\uff01</b><div class="layui-layer-btn" style="padding:10px 0 0 0;"><a class="layui-layer-btn0 append_handle" number="' + a + '" role="' + b + '" style="margin-left:-35px;" >\u8ffd\u52a0\u8be6\u60c5</a></div>', {
        icon: 4,
        title: "\u4ea4\u6613\u63d0\u793a",
        closeBtn: !1,
        shade: [.05, "#000000"],
        btn: !1
    })
};
$(document).ready(function() {
    QuickSearch();
    $(".All-search-btn").click(function() {
        $(".mso_sh").is(":hidden") ? ($(this).addClass("All-search-cur"), $(".mso_sh").show()) : ($(this).removeClass("All-search-cur"), $(".mso_sh").hide(), 0 < $(".mso_sh select option[value!='']:selected").size() ? $(this).addClass("All-search-curr") : $(this).removeClass("All-search-curr"))
    });
    $(".ifav").on("click", function() {
        var a = $(this).attr("number"),
            b = $(this).attr("data"),
            c = $(this).attr("title");
        layer.confirm("\u786e\u5b9a\u8981<strong style='color:red'>" + c + "</strong>\u8be5" + $(".mwz .cur a").html().substr(0, 2) + "\u5417\uff1f", {
            icon: 3
        }, function() {
            Aform("fav", "bh=" + a + "&ac=" + b)
        })
    });
    adlineup_turn = function(a, b) {
        if (1 == b) return !1;
        var c = [{
            right: "-250px"
        }, {
            right: "30px"
        }];
        $(".adlineup table").animate(c[0], 200, function() {
            "hide" == a ? $(this).hide() : $(this).show();
            $(this).animate(c[1], 200)
        })
    };
    adlineup_list = function(a) {
        Aform("adlineup_list", "id=" + $("input[name=adlineup_id]").val() + "&ads=" + $("input[name=adlineup_ads]").val() + "&opar=" + $("input[name=adlineup_opar]").val(), function(b) {
            6 == b.state ? (adlineup_turn("hide", a), $(".adlineup_list").empty(), $(".adlineup .my_card").html(b.info.my_card), $(".adlineup .tips_text").html(b.info.tips_text), $(".adlineup .use_card").html(b.info.use_card), $(".adlineup input[name=use_card]").attr("have", b.info.my_card), $(".adlineup input[name=use_card]").val(0), $(".adlineup .ttime").attr("endTime", b.info.ttime), $.each(b.info.list, function(a, d) {
                a = $("<tr " + (a == b.info.my_curr ? "class='curr'" : "") + "><td class='b'>" + a + "</td><td class='c'>" + d.card + "</td><td>" + d.id + "</td></tr>");
                $(".adlineup_list").append(a)
            }), adlineup_turn("show", a)) : Rs(b)
        })
    };
    noauidt = function(a, b) {
        layer.load();
        $.get("/html/noaudit/" + a + "/" + b, function(a) {
            layer_ly(a, "\u5982\u4f55\u514d\u5ba1", !0, "478px")
        })
    };
    pview = function(a) {
        layer.load();
        $.get("/html/pview/" + $(a).attr("data"), function(a) {
            layer_ly(a, " ", !0, "1000px", .95 * $(window).height() + "px")
        })
    };
    datadiff = function(a) {
        a = "string" == typeof a ? a : $(a).attr("data");
        $.get("/html/datadiff/" + a, function(a) {
            layer.open({
                type: 1,
                title: "<b>\u4fee\u6539\u5185\u5bb9\u8be6\u60c5</b>",
                maxmin: !0,
                shade: [.3, "#000"],
                area: ["1000px", .95 * $(window).height() + "px"],
                shadeClose: !0,
                content: a
            })
        })
    };
    $(".qrefresh").live("click", function() {
        $.get("/html/qrefresh", function(a) {
            layer.open({
                type: 1,
                title: !1,
                closeBtn: !1,
                shade: [.3, "#000"],
                area: ["420px"],
                shadeClose: !0,
                content: a
            })
        })
    });
    safever = function(a) {
        $.post("/html/safever", {
            action: a
        }, function(a) {
            layer_ly(a, "\u5b89\u5168\u9a8c\u8bc1", !1)
        })
    };
    $(".pbinding").live("click", function() {
        $.get("/html/pbinding/" + $(this).data("action") + "/" + $(this).data("number"), function(a) {
            layer.open({
                type: 1,
                title: !1,
                shade: [.3, "#000"],
                area: ["450px"],
                content: a
            })
        })
    });
    $(".audit_review").live("click", function() {
        var a = $(this).attr("b"),
            b = $(this).attr("t");
        layer.confirm("\u60a8\u786e\u5b9a\u5df2\u6839\u636e\u672a\u901a\u8fc7\u539f\u56e0<font color=red>\u6574\u6539\u5b8c\u6bd5</font>\uff1f<br>\u4e14\u5bf9\u8be5\u4fe1\u606f\u8fdb\u884c\u7533\u8bf7<font color=blue>\u91cd\u65b0\u5ba1\u6838</font>\uff1f", {
            icon: 3
        }, function() {
            Aform("audit_review", "b=" + a + "&t=" + b)
        })
    });
    $(".quickset").live("click", function() {
        var a = $(this);
        if (1 != a.attr("vsafe")) return Aform("vsafe", "", function(b) {
            if (0 > b.state) return Rs(b), !1;
            if (0 == b.state) return layer.prompt({
                formType: 1,
                title: "\u8bf7\u8f93\u5165\u5b89\u5168\u7801"
            }, function(b, d, e) {
                Aform("safe", "str=" + b, function(b) {
                    1 == b.state ? (a.attr("vsafe", 1), a.click()) : Rs(b);
                    layer.close(d)
                })
            }), !1;
            a.attr("vsafe", 1);
            a.click()
        }, !0), !1;
        $.post("/html/Quickset/", {
            number: a.closest("dl").find("input[name=C1]").val(),
            type: $("input[name=type]").val()
        }, function(a) {
            layer_ly(a, "<font color=#000000>\u5feb\u6377\u4fee\u6539\u5e38\u89c4\u53c2\u6570</font>", !1, "1000px")
        })
    });
    $(".helper,.uso-select").live({
        mouseenter: function() {
            $(this).addClass("curr")
        },
        mouseleave: function() {
            $(this).removeClass("curr")
        }
    });
    (function(a) {
        a.extend({
            blinkTitle: {
                show: function() {
                    var a = 0,
                        c = document.title;
                    timerArr = [setInterval(function() {
                        a++;
                        3 == a && (a = 1);
                        1 == a && (document.title = "\u3010\u3000\u3000\u3000\u3011" + c);
                        2 == a && (document.title = "\u3010\u65b0\u6d88\u606f\u3011" + c)
                    }, 500), c]
                },
                clear: function() {
                    timerArr && (clearInterval(timerArr[0]), document.title = timerArr[1])
                }
            }
        })
    })(jQuery);
    $(":checkbox[name=xuan]").live("change", function() {
        this.checked ? Cchange($(":checkbox[name=C1]:not(:disabled):not(:checked)"), !0) : Cchange($(":checkbox[name=C1]:not(:disabled):checked"), !1)
    });
    $(":checkbox[name=C1]").live("change", function() {
        Cxchange()
    });
    $(".lyurl").on("click", function() {
        layer.load();
        var a = $(this).attr("lyurl"),
            b = $(this).attr("title"),
            c = "undefined" == typeof $(this).attr("w") ? "1000px" : $(this).attr("w"),
            d = "undefined" == typeof $(this).attr("h") ? "auto" : $(this).attr("h");
        $.get(a, function(a) {
            layer_ly(a, b, !1, c, d)
        })
    });
    $(".ly_tips").on("click", function() {
        layer_ly("<div style='line-height:1.5;padding:10px'>" + $(this).attr("data") + "</div>", "<b>" + $(this).attr("title") + "</b>", !0, "", "auto")
    });
    $(".pay-groups-tabs label[data-pay]").on("click", function() {
        var a = $(this).data("pay");
        a == 'public' ? $('.postbox').hide() : $('.postbox').show();
        0 >= $('.pay-channel-list[data-box="' + a + '"] .cur').length && $('.pay-channel-list[data-box="' + a + '"] span:eq(0)').addClass("cur");
        var b = $('.pay-channel-list[data-box="' + a + '"] .cur').data("gate");
        $(".pay-channel-list[data-box]").hide();
        $('.pay-channel-list[data-box="' + a + '"]').show();
        $('input[name="bank"]').val(a);
        $('input[name="gate"]').val(b);
        $(this).addClass("cur").siblings("label").removeClass("cur");
        parent.layer.iframeAuto(index)
    });
    $(".pay-channel-list span").on("click", function() {
        var a = $(this).data("gate");
        $('input[name="gate"]').val(a);
        $(this).addClass("cur").siblings("span").removeClass("cur")
    });
    $(".shop_admin a:not(.no_click)").click(function() {
        var a = $(".mwz .cur a").html() + "-" + $(this).html(),
            b = $(this).closest("tr").attr("id"),
            c = $(this).attr("class"),
            d = $(this).closest("tr").attr("good");
        "add" == c || "up" == c ? $.post("/html/shopadmin", {
            data: b,
            action: c,
            good: d,
            object: readmeta("Pg-Type")
        }, function(b) {
            layer_ly(b, a, !1, "500px", "auto")
        }) : Aform("shop_admin", "action=" + c + "&object=" + readmeta("Pg-Type") + "&data=" + b + "&good=" + d)
    });
    $(".cartdel").click(function() {
        var a = $(this),
            b = a.attr("info");
        check("cartdel", "&info=" + b, function(b) {
            b.state && (b = a.closest("dl"), (1 < b.children("div").length ? a.closest("div") : b).slideUp(500, function() {
                $(this).remove();
                carmoney()
            }))
        })
    });
    $(".order_note").live("click", function() {
        $val = $(this).next();
        $bh = $(this).attr("number");
        layer.prompt({
            formType: 2,
            value: $val.html(),
            title: "\u8ba2\u5355\u5907\u6ce8\uff08\u4ec5\u81ea\u5df1\u53ef\u89c1\uff09"
        }, function(a, b, c) {
            if (a != $val.html()) Aform("note", "bh=" + $bh + "&txt=" + a, function(b) {
                1 == b.state && $val.html(a)
            });
            else return layer.alert("\u60a8\u6ca1\u6709\u505a\u4efb\u4f55\u4fee\u6539\uff01", {
                icon: 5
            }), !1;
            layer.close(b)
        })
    });
    $(".ubar li").hover(function() {
        $(this).addClass("hzcur");
        $(this).children("div").show()
    }, function() {
        $this = $(this);
        $this.removeClass("hzcur");
        setTimeout(function() {
            $this.hasClass("hzcur") || $this.children("div").hide()
        }, 1)
    });
    $(".Batch_operate").live("click", function() {
        var a = $(this);
        if ("" == $("select[name=batch] option:selected").val()) return layer.alert("\u8bf7\u9009\u62e9\u64cd\u4f5c\u7c7b\u578b\uff01", {
            icon: 5
        }), !1;
        var b = getFormJson();
        if (void 0 === b.C1) return layer.alert("\u81f3\u5c11\u9009\u62e9\u4e00\u6761\u64cd\u4f5c\u5bf9\u8c61\uff01", {
            icon: 5
        }), !1;
        if (0 <= b.batch.indexOf("/")) return location.href = b.batch + "?bh=" + chk(), !1;
        if ("del" == b.batch) {
            if (1 != a.attr("vsafe")) return del_operate(a, b, $("select[name=batch]").find("option:selected").text(), "\u9009\u4e2d" + $(".msl .cur cite").html()), !1;
            Batch_confirm(b, $("select[name=batch]").find("option:selected").text(), "\u9009\u4e2d" + $(".msl .cur cite").html());
            return !1
        }
        bulk(b)
    });
    $(".single_operate").live("click", function() {
        var a = getFormJson("form :hidden[value!='']"),
            b = $(this);
        a.batch = b.attr("action");
        a.C1 = b.closest("dl").find(":checkbox").val();
        if ("del" == a.batch) {
            if (1 != b.attr("vsafe")) return del_operate(b, a, b.html(), "\u8be5" + $(".msl .cur cite").html()), !1;
            Batch_confirm(a, b.html().replace(/[^\u4E00-\u9FA5]/ig, ""), "\u8be5" + $(".msl .cur cite").html());
            return !1
        }
        bulk(a)
    })
});
$(".jump_page").live("click", function() {
    var a = $(".jumpbox"),
        b = $(this);
    a.is(":hidden") ? a.show().animate({
        width: "155px"
    }, function() {
        b.addClass("curr");
        $(".jump_inp").focus()
    }) : a.animate({
        width: "0"
    }, function() {
        a.hide();
        b.removeClass("curr")
    })
});

function jump_page(a) {
    if ("" == a) return layer.alert("\u7ffb\u9875\u4e0d\u80fd\u4e3a\u7a7a\uff01", {
        icon: 5
    }, function(a) {
        $(".jump_inp").focus();
        layer.close(a)
    }), !1;
    if (isNaN(a)) return layer.alert("\u7ffb\u9875\u53ea\u80fd\u8f93\u5165\u6570\u5b57\uff01", {
        icon: 5
    }, function(a) {
        $(".jump_inp").val("").focus();
        layer.close(a)
    }), !1;
    if (a == parseInt($("#page .ohave").html())) return layer.alert("\u5df2\u5728\u5f53\u524d\u9875\uff0c\u65e0\u9700\u8df3\u8f6c\u7ffb\u9875\uff01", {
        icon: 0
    }, function(a) {
        $(".jump_inp").val("").focus();
        layer.close(a)
    }), !1;
    if (0 >= a) return layer.alert("\u7ffb\u9875\u4e0d\u80fd\u4f4e\u4e8e\u6700\u5c0f\u9875\uff1a<b>1</b>", {
        icon: 0
    }, function(a) {
        $(".jump_inp").val("").focus();
        layer.close(a)
    }), !1;
    if (a > parseInt($("#page").attr("total"))) return layer.alert("\u7ffb\u9875\u4e0d\u80fd\u8d85\u8fc7\u6700\u5927\u9875\uff1a<b>" + $("#page").attr("total") + "</b>", {
        icon: 0
    }, function(a) {
        $(".jump_inp").val("").focus();
        layer.close(a)
    }), !1;
    list(a)
}

function cancel_cashed(a) {
    layer.confirm("\u786e\u5b9a\u8981<strong style='color:red'>\u64a4\u9500\u63d0\u73b0</strong>\u5417\uff1f<br>\u64a4\u9500\u540e\u63d0\u73b0\u91d1\u989d\u5c06\u8fd4\u56de\u81f3\u60a8\u7684\u8d26\u6237<br><font color=#666666>\u6bcf\u65e5\u4ec5\u53ef\u64a4\u9500\u4e00\u6b21\u63d0\u73b0</font>", {
        icon: 3
    }, function() {
        Aform("cancel_cashed", "bh=" + a)
    })
}

function Resulting(a, b, c, d) {
    layer.confirm('<strong style="color:#ff0000">请在支付页面完成付款! </strong><font color="#666666"><br>付款完成前请不要关闭此窗口。<br>付款完成后请根据情况点击以下按钮。<br>如有疑问联系客服</font>', {
        icon: 3,
        btn: ["\u652f\u4ed8\u5b8c\u6210", "\u91cd\u65b0\u652f\u4ed8"],
        shade: [.5, "#fff"],
        title: !1,
        closeBtn: !1,
        area: "350px"
    }, function() {
        "cashier" == a ? location.href = "/member/order/buy" : "bond" == a && location.reload()
    }, function(a) {
        layer.close(a)
    })
}

function setupsafe() {
    $.get("/html/setupsafe", function(a) {
        layer.open({
            type: 1,
            title: '<b class="blue">\u5b89\u5168\u7801\u8bbe\u7f6e</b>',
            closeBtn: !1,
            shade: [.05, "#000"],
            area: ["400px"],
            shadeClose: !1,
            content: a
        })
    })
}

function chk() {
    var a = [];
    $("input[name=C1]:checked").each(function() {
        a.push($(this).val())
    });
    return a
}

function Batch_confirm(a, b, c) {
    layer.confirm("\u786e\u5b9a\u8981<font color=red><b>" + b + "</b></font>" + c + "\u5417\uff1f", {
        icon: 3
    }, function(b) {
        bulk(a);
        layer.close(b)
    })
}

function returnsuccess(a, b, c) {
    c = c || !1;
    layer.closeAll("iframe");
    layer.alert(a, {
        icon: b
    }, function(a) {
        c ? location.href = c : location.reload();
        layer.close(a)
    })
}

function del_operate(a, b, c, d) {
    Aform("vsafe", "", function(e) {
        if (0 > e.state) return Rs(e), !1;
        if (0 == e.state) return layer.prompt({
            formType: 1,
            title: "\u8bf7\u8f93\u5165\u5b89\u5168\u7801"
        }, function(b, c, d) {
            Aform("safe", "str=" + b, function(b) {
                1 == b.state ? (a.attr("vsafe", 1), a.click()) : Rs(b);
                layer.close(c)
            })
        }), !1;
        Batch_confirm(b, c, d)
    })
}
$(".order_handle,.append_handle,.trust_handle").live("click", function() {
    layer.load();
    var a = readmeta("Or-Role"),
        b = "undefined" == typeof $(this).attr("number") ? readmeta("Or-Number") : $(this).attr("number"),
        c = "undefined" == typeof $(this).attr("utime") ? readmeta("Or-Time") : $(this).attr("utime"),
        d = $(this).hasClass("order_handle") ? "order" : $(this).hasClass("append_handle") ? "append" : "trust",
        e = "undefined" == typeof $(this).attr("w") ? "order" != d ? 680 : 580 : $(this).attr("w");
    "order" == d && layer.closeAll("page");
    $.post("/deal/" + d, {
        number: b,
        role: a,
        action: $(this).attr("data"),
        utime: c
    }, function(a) {
        layer_ly(a, " ", !1, e + "px")
    })
});
$(".order_info").live("click", function() {
    layer.load();
    var a = "undefined" == typeof $(this).attr("number") ? readmeta("Or-Number") : $(this).attr("number"),
        b = "undefined" == typeof $(this).attr("role") ? readmeta("Or-Role") : $(this).attr("role");
    $.post("/deal/" + $(this).attr("action"), {
        number: a,
        role: b
    }, function(a) {
        layer_ly(a, " ", !1, "580px")
    })
});
$(".order_evaluation").live("click", function() {
    layer.load();
    $.post("/deal/evaluation", {
        number: $(this).attr("number"),
        role: $(this).attr("role"),
        object: $(this).attr("object")
    }, function(a) {
        layer_ly(a, " ", !1, "580px")
    })
});
$(".trust_action").live("click", function() {
    var a = $(this).attr("number"),
        b = $(this).attr("action");
    if ("come" == b) return layer.confirm('<b class="red">\u786e\u5b9a\u8981\u8f6c\u51fa\u6258\u7ba1\u8d4f\u91d1\u5417\uff1f</b><br>\u8f6c\u51fa\u540e\u8be5\u4efb\u52a1\u5c06\u53d8\u6210\u672a\u6258\u7ba1\u72b6\u6001\uff01', {
        icon: 3
    }, function() {
        dform("number=" + a + "&action=" + b, "trust")
    }), !1;
    dform("number=" + a, "trust")
});

function dconfirm(a, b, c) {
    c = c || "order";
    layer.confirm(a, {
        icon: 3
    }, function() {
        dform(b, c)
    })
}

function insert_img(a) {
    var b = $(".filelist img"),
        c = "",
        d = "";
    0 == b.length ? c = '<cite><b class="blue">\u4eb2\uff0c\u60a8\u8fd8\u6ca1\u6709\u4e0a\u4f20\u7684\u6f14\u793a\u5927\u56fe\uff01</b><br /><br /><input type="button" value="\u524d\u53bb\u4e0a\u4f20" class="layui-btn layui-btn-radius  layui-btn-small" id="go_up"></cite>' : ($.each(b, function(b) {
        var d = ifstr(a, "[img]" + (b + 1) + "[/img]") ? "not" : "";
        c += "<div class='" + d + "' id=" + (b + 1) + "><img src='" + $(this).attr("src") + "'><strong>" + (b + 1) + "</strong><span><i></i></span></div>"
    }), d = "<div class='btns'><input type='button' id='ok' class='layui-btn' value='\u5bfc\u5165\u9009\u4e2d'><input type='button' id='no' class='layui-btn layui-btn-primary' value='\u53d6\u6d88'></div>");
    $("#insertPic").html("<div class='pic'>" + c + "</div>" + d + "<div class='prompt'><strong>\u63d0\u793a\uff1a</strong><br /><b>1.</b>\u8be6\u60c5\u5185\u5bb9\u4e0d\u518d\u5141\u8bb8\u4e0a\u4f20\u56fe\u7247\u53ca\u5916\u94fe\u56fe\u7247\uff0c\u4f46\u5141\u8bb8\u5c06\u4e0b\u65b9<span>\u5927\u56fe</span>\u63d2\u5165\u8be6\u60c5\u5185\u5bb9\u4efb\u610f\u4f4d\u7f6e\uff1b<br /><b>2.</b>\u63d2\u5165\u6807\u7b7e<span>[img]\u5e8f\u53f7[/img]</span>\uff0c\u5f53\u5927\u56fe\u6392\u5e8f\u53d8\u5316\u540e\uff0c\u9700\u786e\u8ba4\u5df2\u63d2\u5165\u56fe\u7247\u5e8f\u53f7\u662f\u5426\u5bf9\u5e94\uff1b<br /><b>3.</b>\u672a\u63d2\u5165\u8be6\u60c5\u5185\u5bb9\u7684\u5927\u56fe\u5c06\u6309\u6392\u5e8f\u987a\u5e8f\u4f9d\u6b21\u663e\u793a\u5728\u8be6\u60c5\u4ecb\u7ecd\uff08\u6a21\u7248\u5185\u5bb9\uff09\u4e4b\u540e\u3002</div></div>")
}

function insert_contact(a) {
    $("#insertContact").html("<div class='pic'>" + $(".contactBox ").html() + "</div><div class='btns'><input type='button' id='ok' class='layui-btn' value='\u63d2\u5165\u9009\u4e2d'><input type='button' id='no' class='layui-btn layui-btn-primary' value='\u53d6\u6d88'></div><div class='prompt'><strong>\u63d0\u793a\uff1a</strong><br /><b>1.</b>\u53ef\u5728\u6b64\u5c06\u5f53\u524d\u4fe1\u606f\u7c7b\u578b\u573a\u666f\u6216\u5168\u5c40\u7684\u8054\u7cfb\u65b9\u5f0f\uff0c\u63d2\u5165\u5230\u8be6\u60c5\u5185\u5bb9\u7684\u4efb\u610f\u4f4d\u7f6e<br /><b>2.</b>\u63d2\u5165\u8054\u7cfb\u65b9\u5f0f\u540e\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8f6c\u6362\u8f93\u51fa\u76f8\u5e94\u8054\u7cfb\u65b9\u5f0f\u7684\u53f7\u7801\uff0c\u5e76\u53ef\u76f4\u63a5\u70b9\u51fb\uff1b<br /><b>3.</b>\u5f53\u8054\u7cfb\u65b9\u5f0f\u53f7\u7801\u53d1\u751f\u6539\u53d8\u65f6\uff0c\u8f6c\u6362\u8f93\u51fa\u4f1a\u968f\u4e4b\u6539\u53d8\uff0c\u907f\u514d\u5199\u6b7b\u540e\u9010\u4e00\u7f16\u8f91\u4fe1\u606f\u7684\u9ebb\u70e6\uff1b<b>4.</b>\u8054\u7cfb\u65b9\u5f0f\u7cfb\u7edf\u5df2\u81ea\u52a8\u9644\u52a0\u524d\u7f00\uff0c\u793a\u4f8b => \u6807\u7b7e\uff1a[qq]i[/qq]&nbsp;&nbsp;&nbsp;&nbsp;\u8f93\u51fa\uff1aQQ\uff1a123456\u3002</div></div>")
}

function Urls(a) {
    var b = $("form *[value!='']").serializeArray();
    $.each(b, function(b, d) {
        a += "/" + d.name + "/" + d.value
    });
    location.href = a
};
$(".witkey_selection_tabs a").live('click', function() {
    $(this).addClass('active').siblings("a").removeClass('active');
    $(this).closest('.witkey_selection_box').find('.witkey_selection_tag:eq(' + $(this).index() + ')').addClass('active').siblings(".witkey_selection_tag").removeClass('active')
});
$(".witkey_selection_tag .item").live('click', function() {
    var $this = $(this),
        $box = $this.closest('.witkey_selection_box'),
        $tag = $this.closest('.witkey_selection_tag'),
        $tabs = $box.find('.witkey_selection_tabs a:eq(' + $tag.index() + ')'),
        value = $this.data('value'),
        title = $this.find('cite').html();
    $box.find('.item.active').removeClass('active');
    $box.find('.layui-input').val($tabs.html() + ' - ' + title);
    $box.find('input.value_0').val($tabs.data('value'));
    $box.find('input.value_1').val(value);
    $(this).addClass('active')
});
$(".witkey_selection_selected").live('click', function(event) {
    event.stopPropagation();
    var $box = $(this).closest('.witkey_selection_box'),
        c = function(e) {
            $(e.target).closest('.witkey_selection_tabs').length <= 0 && $box.removeClass('active') && $(document).off("click", c)
        };
    if (!$box.hasClass('active')) {
        $.each($box.find('input:hidden'), function(key, value) {
            var value = $(value).val(),
                curr = $box.find("[data-value='" + value + "']");
            if (value != '') {
                curr.addClass('active').siblings().removeClass('active');
                curr.closest('.witkey_selection_tag').addClass('active').siblings().removeClass('active')
            } else if ($box.find('.item.active').length <= 0) {
                $box.find('.witkey_selection_tabs a:eq(0)').addClass('active').siblings("a").removeClass('active');
                $box.find('.witkey_selection_body .witkey_selection_tag:eq(0)').addClass('active').siblings().removeClass('active')
            }
        });
        $(document).off("click", c).on("click", c)
    }
    $box.toggleClass('active')
});